<UserControl
  xmlns="https://github.com/avaloniaui"
  xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  xmlns:vm="using:ControlsSandbox.ViewModels"
  xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  mc:Ignorable="d"
  x:Class="ControlsSandbox.Views.CellView">

  <Design.DataContext>
    <vm:CellViewModel />
  </Design.DataContext>
  
  <Border
    BorderBrush="Black"
    BorderThickness="1"
    Background="Transparent"
    Width="{Binding Width, Converter={StaticResource mm}}"
    Height="{Binding Height, Converter={StaticResource mm}}">
    <TextBlock
      Text="{Binding Text}"
      HorizontalAlignment="{Binding HorizontalAlignment}"
      VerticalAlignment="{Binding VerticalAlignment}"
      Foreground="{Binding ForegroundColor}"
      Background="{Binding BackgroundColor}"
      Margin="0"/>
  </Border>

</UserControl>